/**
 * 鉴别器类型
 */
import {Enum} from '../../../../../tnxjs/tnxcore';

export default class DiscriminatorType extends Enum {

    static name = 'DiscriminatorType';

    physicalType = '';

    constructor(caption, physicalType) {
        super(caption);
        this.physicalType = physicalType;
    }

    static CHAR = new DiscriminatorType('字符', 'char');
    static STRING = new DiscriminatorType('字符串', 'varchar'); // 即使在Oracle中varchar用于鉴别字段也是没有问题的
    static INTEGER = new DiscriminatorType('整数', 'int');

}
